package com.zhangzhan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhangzhan.domain.entity.Article;
import org.apache.ibatis.annotations.Update;

/**
 * @author 张一恒
 * @version 1.0
 * 文章表
 */
public interface ArticleMapper extends  BaseMapper<Article> {

    //逻辑删除博文
    @Update("update sg_article set del_flag = '1' where id = #{id}")
    void deleteArticle(Long id);
}
